Skip to content

Storage check page for per-tab projects - #43

Merged
cedricvogel-leo merged 1 commit into
mainfrom
chore/storage-check
Oct 29, 2026
Merged

cedricvogel-leo merged 1 commit into
mainfrom
chore/storage-check

Conversation

@cedricvogel-leo

Copy link
Copy Markdown
Collaborator

P25, address bar: a one-page diagnostic. On your iPad it shows whether a tab still knows its marker after Safari unloads it, without the id in the address. Your result decides between variant (3), bare address, and variant (2), #tab=….

The page

  • embed/public/storage-check.html is copied unchanged into dist-embed/.
  • After the merge it's at https://glpython-edu.github.io/glpython-editor/storage-check.html: the IDE's origin, so the same storage rules apply.
  • It isn't linked from anywhere and doesn't change the embed.
  • «Marker setzen» writes a marker into the tab's session storage and its history.state.
  • Every page load is logged with its number, time, kind (neu geöffnet / neu geladen / vor/zurück), and whether each marker survived.
  • «Belastungsseite öffnen» opens ?belasten in a new tab. It fills memory (up to 3 GB, 64 MB at a time) so iPadOS unloads background tabs.
  • No external resources.

Wording (German only; the page is for you, not for learners)

«Speicher-Test» · «Prüft, was ein Tab nach Neuladen, Entladen und Neustart von Safari noch weiss.» · «Seitenaufbau Nr. …» · «Session-Speicher: ✓ gefunden / ✗ fehlt» · «Marker setzen» · «Belastungsseite öffnen» · «Alles zurücksetzen» · «Speicher belasten» · «Diese Seite belegt Speicher, bis iPadOS andere Tabs entlädt. Sie darf dabei selbst abstürzen oder neu laden.»

Checked (Chrome, phone width)

  • After «Marker setzen»: both ✓.
  • After a reload: page load 2, «neu geladen», both ✓.
  • The same address in a new tab: both ✗.
  • The memory page fills up.

🤖 Generated with Claude Code

embed/public/storage-check.html, deployed with the embed at
/glpython-editor/storage-check.html - the IDE's origin, so the same storage
rules apply. It sets a marker in sessionStorage and in history.state and
logs every page load with what survived, to decide on the iPad whether a
tab finds its project again after Safari unloads it without the tab id in
the address. "?belasten" fills memory so iPadOS unloads background tabs.
Not linked from anywhere; no effect on the embed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cedricvogel-leo
cedricvogel-leo merged commit 7f3ecdc into main Oct 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant